package com.clwl.supervise.superviseapp.mapper.supervise;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.clwl.supervise.superviseapp.entity.supervise.JgSchemeContent;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface JgSchemeContentMapper extends BaseMapper<JgSchemeContent> {

    List<JgSchemeContent> selectByStandardId(@Param("schemeStandardId") Long schemeStandardId);

    JgSchemeContent selectByStandardIdAndCheckContendId(@Param("schemeStandardId") Long schemeStandardId,@Param("checkContentId") Long checkContentId, @Param("riskCodeList") List<String> riskCode);

    List<JgSchemeContent> selectNoPassByCheckId(@Param("schemeCheckId") Long schemeCheckId);

    List<JgSchemeContent> selectByCheckId(@Param("schemeCheckId") Long schemeCheckId);

    List<Map<String, Object>> selectMapByCheckId(@Param("schemeCheckId") Long checkId);

    int batchUpdate(@Param("list") List<JgSchemeContent> contentUpdateList);
}